package indi.kider.server.applet.service;

import indi.kider.common.model.apabus.Reservation;
import indi.kider.server.apabus.mapper.ReservationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@SuppressWarnings("ALL")
@Service
public class ReservationServiceImpl implements ReservationService {

    @Autowired
    private ReservationMapper reservationMapper;

    @Override
    public String saveReservation(Reservation reservation) {
         int i =  reservationMapper.insertSelective(reservation);
         return i > 0 ? "ok":"fail";
    }
}
